import { createPinia } from 'pinia';
// import piniaPluginPersist from 'pinia-plugin-persist'
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'
import type {App} from "vue"


const store = createPinia();
// store.use(piniaPluginPersist)   // 数据持久化
store.use(piniaPluginPersistedstate)
export function setupStore(app:App) {
    app.use(store);
}
export { store };
